package com.bwie.common.domain.request;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @Author Junchen_N1
 * @Date 2025/6/17 14:26
 * @ClassName RedPacketAdd
 * @Description TODO
 */
@Data
public class RedPacketAdd {
    /**
     * 红包发送人id
     */
    private Integer senderId;
    /**
     * 红包主题
     */
    @NotBlank(message = "红包主题不能为空")
    @Length(max = 30,message = "所填写的红包主题内容不得超过32个字符")
    private String redPacketName;
    /**
     * 红包金额
     */
    @NotNull(message = "红包金额不能为空")
    @Max(value = 300,message = "红包总金额不得超过300元")
    private BigDecimal redPacketPrice;
    /**
     * 红包总个数
     */
    @NotNull(message = "红包总个数不能为空")
    private Integer redPacketNums;
    /**
     * 红包剩余金额
     */
    private BigDecimal redPacketRemainPrice;
    /**
     * 持续时长（分钟）
     */
    @NotNull(message = "红包持续时长不能为空")
    private Integer continuousMinutes;
    /**
     * 可以抢红包的用户id集合
     */
    @NotNull(message = "请至少选择一名可以抢红包的好友")
    private List<Integer> canReceiveUserIdsList = new ArrayList<>();

    /**
     * 可以抢红包的用户idStr
     */
    private String canReceiveUserIds;

}
